import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { ConfigService } from './service/config.service';
import { NewsService } from './service/news.service';
import { ManagelistComponent } from './news/managelist/managelist.component';
import { EditComponent } from './news/edit/edit.component';
import { Route } from '@angular/compiler/src/core';
import { CKEditorModule } from 'ng2-ckeditor';



export const ROUTES:Routes=[

  {path:'managelist',component:ManagelistComponent},
  {path:'editnews/:id',component:EditComponent}
   
   
];

@NgModule({
  declarations: [
    AppComponent,
    ManagelistComponent,
    EditComponent
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    FormsModule,
    RouterModule.forRoot(ROUTES),
    CKEditorModule
  
  ],
  providers: [
    ConfigService,
    NewsService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
